-- GENERATED SPELL FOR [Attracted Reef Bull] --


function spell0_24804(pUnit, Event) --@PetWait,Self--
pUnit:FullCastSpellOnTarget(36553,pUnit)
pUnit:RegisterEvent('Sorts_24804', 598, 1)
end

function Sorts_24804(pUnit, Event)
local choix_sorts_24804 = math.random(0, 0)
if choix_sorts_24804 == 0 then
pUnit:RegisterEvent('spell0_24804', 1, 1)
end
end

function mob24804_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24804', math.random(1500, 3000), 1)
end

function mob24804_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24804_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24804_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24804, 1, 'mob24804_Action')
RegisterUnitEvent(24804, 2, 'mob24804_Leave')
RegisterUnitEvent(24804, 3, 'mob24804_Kill')
RegisterUnitEvent(24804, 4, 'mob24804_Die')
